package com.ts.content.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ts.content.dto.TopicDTO;
import com.ts.content.entity.TopicEntity;
import com.ts.content.vo.Topic2Vo;
import com.ts.content.vo.TopicVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 圈子
 *
 * @author admin admin@qq.com
 * @since 1.0.0 2023-02-22
 */
public interface TopicService extends IService<TopicEntity> {
    public IPage getTopicList(IPage<TopicDTO> page);

    public IPage<TopicEntity> getUserTopicList(IPage<TopicEntity> page, @Param("userId") Integer userId);

    List<TopicVo> topicVoListByClassId(Integer classId, Page<TopicEntity> topicPage);

    Topic2Vo getUserTopicById(Integer id);

}